SORT

Syntax: SORT array$, offset [,row]
Location: ARRAY

The SORT command takes a two or three-dimensional string array and sorts it in ascending order.  offset is an  even number which allows you to apply different sort criteria by telling SORT to compare the sub-strings to the right of position offset+1. The third, optional parameter is only necessary for three-dimensional arrays: it selects the row to be sorted.

CROSS-REFERENCE:
SEARCH searches string arrays.
